import 'dart:convert';
/// code : 0
/// message : "操作成功"
/// data : {"securityToken":"CAISxAJ1q6Ft5B2yfSjIr5WDG9zRl+tK1IPTMULgiXg6TbZ13PPfljz2IHhMeHVvCeobt/o+mG9T6fsZlqNUcKR+SFffbMx2thOKH6ccOtivgde8yJBZor/HcDHhJnyW9cvWZPqDP7G5U/yxalfCuzZuyL/hD1uLVECkNpv74vwOLK5gPG+CYCFBGc1dKyZ7tcYeLgGxD/u2NQPwiWeiZygB+CgE0Dwjt/jnm53FsUKA0wWnk9V4/dqhfsKWCOB3J4p6XtuP2+h7S7HMyiY46WIRrP8q0PMUo2qe4IDBXAIOvk6cWO3P6c2srqjM80rfcEQtkY8f9ZUQ0oS7/+x82wFGgCCWvQ7V5ZFysSrVmd7Ypxvr1Odq9jVgn0Ge96OPxycOS1x1Sk2ktaRPhPFe91KChE+kJM3D2hT+Bi3HLQztgBQwvLMdpz0agAEhfMiLsaRKiAZgxVfMIUiS/vTvbPKqvqfz01XfMTgZKVVRoUWpy7At39o3+dPNIy9QKKuFA5QUjB+8DZiHc3MQzBG1ASVYqT35uf94qI90Bw4L3T106bCzecEgceEZcSST2sYyCIvIVp53AhjRl3P95i4BzmSItIa5DC1Y6O0jXCAA","accessKeySecret":"F4Qnxfdz4FRP66hKD1K7WLsfHVFkrQhs9fDomjTuz7qY","accessKeyId":"STS.NV6Pfez4kcA83dQmxoA9Y36tt","expiration":"2024-01-30T08:34:42Z"}

OssStsResp ossStsRespFromJson(String str) => OssStsResp.fromJson(json.decode(str));
String ossStsRespToJson(OssStsResp data) => json.encode(data.toJson());
class OssStsResp {
  OssStsResp({
      this.code, 
      this.message, 
      this.data,});

  OssStsResp.fromJson(dynamic json) {
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? STSData.fromJson(json['data']) : null;
  }
  num? code;
  String? message;
  STSData? data;
OssStsResp copyWith({  num? code,
  String? message,
  STSData? data,
}) => OssStsResp(  code: code ?? this.code,
  message: message ?? this.message,
  data: data ?? this.data,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['message'] = message;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }

}

/// securityToken : "CAISxAJ1q6Ft5B2yfSjIr5WDG9zRl+tK1IPTMULgiXg6TbZ13PPfljz2IHhMeHVvCeobt/o+mG9T6fsZlqNUcKR+SFffbMx2thOKH6ccOtivgde8yJBZor/HcDHhJnyW9cvWZPqDP7G5U/yxalfCuzZuyL/hD1uLVECkNpv74vwOLK5gPG+CYCFBGc1dKyZ7tcYeLgGxD/u2NQPwiWeiZygB+CgE0Dwjt/jnm53FsUKA0wWnk9V4/dqhfsKWCOB3J4p6XtuP2+h7S7HMyiY46WIRrP8q0PMUo2qe4IDBXAIOvk6cWO3P6c2srqjM80rfcEQtkY8f9ZUQ0oS7/+x82wFGgCCWvQ7V5ZFysSrVmd7Ypxvr1Odq9jVgn0Ge96OPxycOS1x1Sk2ktaRPhPFe91KChE+kJM3D2hT+Bi3HLQztgBQwvLMdpz0agAEhfMiLsaRKiAZgxVfMIUiS/vTvbPKqvqfz01XfMTgZKVVRoUWpy7At39o3+dPNIy9QKKuFA5QUjB+8DZiHc3MQzBG1ASVYqT35uf94qI90Bw4L3T106bCzecEgceEZcSST2sYyCIvIVp53AhjRl3P95i4BzmSItIa5DC1Y6O0jXCAA"
/// accessKeySecret : "F4Qnxfdz4FRP66hKD1K7WLsfHVFkrQhs9fDomjTuz7qY"
/// accessKeyId : "STS.NV6Pfez4kcA83dQmxoA9Y36tt"
/// expiration : "2024-01-30T08:34:42Z"

STSData dataFromJson(String str) => STSData.fromJson(json.decode(str));
String dataToJson(STSData data) => json.encode(data.toJson());
class STSData {
  STSData({
      this.securityToken, 
      this.accessKeySecret, 
      this.accessKeyId, 
      this.expiration,});

  STSData.fromJson(dynamic json) {
    securityToken = json['securityToken'];
    accessKeySecret = json['accessKeySecret'];
    accessKeyId = json['accessKeyId'];
    expiration = json['expiration'];
  }
  String? securityToken;
  String? accessKeySecret;
  String? accessKeyId;
  String? expiration;
STSData copyWith({  String? securityToken,
  String? accessKeySecret,
  String? accessKeyId,
  String? expiration,
}) => STSData(  securityToken: securityToken ?? this.securityToken,
  accessKeySecret: accessKeySecret ?? this.accessKeySecret,
  accessKeyId: accessKeyId ?? this.accessKeyId,
  expiration: expiration ?? this.expiration,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['securityToken'] = securityToken;
    map['accessKeySecret'] = accessKeySecret;
    map['accessKeyId'] = accessKeyId;
    map['expiration'] = expiration;
    return map;
  }

}